import request from '@/utils/request'

// 查询采集商品任务2.0列表
export function listCollectProductTask(query) {
  return request({
    url: '/gather/gather/collectProductTask20/list',
    method: 'get',
    params: query
  })
}

// 查询采集商品任务2.0详细
export function getCollectProductTask(id) {
  return request({
    url: '/gather/gather/collectProductTask20/' + id,
    method: 'get'
  })
}

// 新增采集商品任务2.0
export function addCollectProductTask(data) {
  return request({
    url: '/gather/gather/collectProductTask20',
    method: 'post',
    data: data
  })
}

// 修改采集商品任务2.0
export function updateCollectProductTask(data) {
  return request({
    url: '/gather/gather/collectProductTask20',
    method: 'put',
    data: data
  })
}

// 删除采集商品任务2.0
export function delCollectProductTask(id) {
  return request({
    url: '/gather/gather/collectProductTask20/' + id,
    method: 'delete'
  })
}
